<?php
/**
 * Created by PhpStorm.
 * User: mingzhongshui
 * Date: 2020/3/31
 * Time: 21:09
 */

namespace App\Repositories\User;

use App\Repositories\Repository;
use Carbon\Carbon;
use Illuminate\Support\Facades\DB;

/**
 * Class UserRepository
 * @package App\Repositories\User
 */
class UserVipRemindTimeRepository extends Repository
{

    const IS_VIP = 1;
    const NOT_VIP = 0;

    /**
     * @return string
     */
    public function model()
    {
        return \App\Models\User\UserVipRemindTimeModel::class;
    }

    /**
     * @param $uid
     * @return mixed
     */
    public function getOneByUid($uid)
    {
        return $this->where('uid', $uid)->first();
    }
}
